package com.lingchou.cloud.process.api.dto.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Getter
@Setter
@ApiModel(value = "DynamicTaskParam", description = "动态修改任务-任务参数")
public class DynamicTaskParam {

    /**
     * 任务ID
     */
    @ApiModelProperty(value = "任务ID",required = true)
    @NotBlank(message = "任务ID不能为空")
    private String taskId;

    /**
     * 定时时间
     */
    @ApiModelProperty(value = "定时时间，要求ISO8601",required = true)
    @NotNull(message = "定时时间不能为空")
    private LocalDateTime endTime;
}
